﻿using System.Collections.Generic;
using Model;
using DAO;

/**
 * 作者：陈杰
 * QQ  : 710782046
 * Email:ovenjackchain@gmail.com
 * Web :http://www.qidian10.com
 */
namespace BLL
{
    public class h00_xmzd_tempMgr
    {
        h00_xmzd_tempDao _h00_xmzd_tempDao = new h00_xmzd_tempDao();

        /// <summary>
        /// 返回所有记录
        /// </summary>
        /// <returns>返回所有记录</returns>
        public IList<h00_xmzd_temp> FindAll_h00_xmzd_temp()
        {
            return _h00_xmzd_tempDao.FindAll_h00_xmzd_temp();
        }

        /// <summary>
        /// 根据条件获得该页的记录
        /// </summary>
        /// <param name="start">开始号</param>
        /// <param name="limit">分页大小</param>
        /// <param name="Fields">查询关键字</param>
        /// <param name="query">查询内容</param>
        /// <returns>返回当前页数据</returns>
        public IList<h00_xmzd_temp> FindAllByPage_h00_xmzd_temp(string start, string limit, string conditions)
        {
            CJSearchSql CJSearchSql = new CJSearchSql();
            return _h00_xmzd_tempDao.FindAllByPage_h00_xmzd_temp(start, limit, CJSearchSql.GetConditonSQL(conditions));
        }
        /// <summary>
        /// 获得该条件的记录总条数
        /// </summary>
        /// <param name="Fields">查询关键字</param>
        /// <param name="query">查询内容</param>
        /// <returns>返回记录条数</returns>
        public string GetRecordCount_h00_xmzd_temp(string conditions)
        {
            CJSearchSql CJSearchSql = new CJSearchSql();
            return _h00_xmzd_tempDao.GetCount_h00_xmzd_temp(CJSearchSql.GetConditonSQL(conditions));
        }
        /// <summary>
        /// 根据id查找指定记录
        /// </summary>
        /// <param name="id">查找的ID号</param>
        /// <returns>返回查找到的对象</returns>
        public h00_xmzd_temp FindById_h00_xmzd_temp(int id)
        {
            return _h00_xmzd_tempDao.FindById_h00_xmzd_temp(id);
        }

        /// <summary>
        /// 添加新纪录
        /// </summary>
        /// <param name="h00_xmzd_temp">实体</param>
        /// <returns>是否添加成功</returns>
        public bool Add_h00_xmzd_temp(h00_xmzd_temp _h00_xmzd_temp)
        {
            return _h00_xmzd_tempDao.Add_h00_xmzd_temp(_h00_xmzd_temp);
        }

        /// <summary>
        /// 删除记录
        /// </summary>
        /// <param name="h00_xmzd_temp">实体</param>
        /// <returns>是否删除成功</returns>
        public bool Del_h00_xmzd_temp(h00_xmzd_temp _h00_xmzd_temp)
        {
            return _h00_xmzd_tempDao.Del_h00_xmzd_temp(_h00_xmzd_temp);
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="conditions">删除条件，例如 ForeignID=2</param>
        /// <returns></returns>
        public bool Del_h00_xmzd_temp(string conditions)
        {
            return _h00_xmzd_tempDao.Del_h00_xmzd_temp(conditions);
        }
        /// <summary>
        /// 更新记录
        /// </summary>
        /// <param name="h00_xmzd_temp">实体</param>
        /// <returns>是否更新成功</returns>
        public bool Update_h00_xmzd_temp(h00_xmzd_temp _h00_xmzd_temp)
        {
            return _h00_xmzd_tempDao.Update_h00_xmzd_temp(_h00_xmzd_temp);
        }
        /// <summary>
        /// 批量更新
        /// </summary>
        /// <param name="sets">更新值，例如[field1]='X',[field2]='Y'</param>
        /// <param name="conditions">更新条件，例如 ForeignID=2</param>
        /// <returns></returns>
        public bool Update_h00_xmzd_temp(string sets, string conditions)
        {
            return _h00_xmzd_tempDao.Update_h00_xmzd_temp(sets, conditions);
        }
        /// <summary>
        /// 查找符合条件的记录
        /// </summary>
        /// <param name="conditions">条件</param>
        /// <returns>返回符合条件的记录</returns>
        public IList<h00_xmzd_temp> FindByConditions_h00_xmzd_temp(string conditions)
        {
            return _h00_xmzd_tempDao.FindByCondition_h00_xmzd_temp(conditions);
        }
    }
}
